4349 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 40 / 218
Newer►
  • Using Temporary Security Credentials to Request Access to AWS Resources - AWS Identity and Access Management

    Use role in script

    November 21, 2017 at 5:03:26 PM GMT+1 - permalink - archive.org - http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html?shortFooter=true#using-temp-creds-sdk-cli
    aws bash cli role
  • thumbnail
    python - Print in terminal with colors? - Stack Overflow

    def print_format_table():
    """
    prints table of formatted text format options
    """
    for style in range(8):
    for fg in range(30,38):
    s1 = ''
    for bg in range(40,48):
    format = ';'.join([str(style), str(fg), str(bg)])
    s1 += '\x1b[%sm %s \x1b[0m' % (format, format)
    print(s1)
    print('\n')

    print_format_table()

    November 17, 2017 at 9:37:26 AM GMT+1 - permalink - archive.org - https://stackoverflow.com/questions/287871/print-in-terminal-with-colors
    color python terminal
  • thumbnail
    Apache Libcloud is a standard Python library that abstracts away differences among multiple cloud provider APIs | Apache Libcloud

    utopie ^^

    November 17, 2017 at 9:34:14 AM GMT+1 - permalink - archive.org - https://libcloud.apache.org/
    cloud lib python
  • thumbnail
    Amazon ECS présente le mode de mise en réseau des conteneurs AWSVPC pour une prise en charge des fonctionnalités de mise en réseau complètes
    November 17, 2017 at 8:49:31 AM GMT+1 - permalink - archive.org - https://aws.amazon.com/fr/about-aws/whats-new/2017/11/amazon-ecs-introduces-awsvpc-networking-mode-for-containers-to-support-full-networking-capabilities/
    aws ecs
  • Learn just enough Linux to get things done — petralia

    for beginners ;)

    November 17, 2017 at 8:41:29 AM GMT+1 - permalink - archive.org - http://alexpetralia.com/posts/2017/6/26/learning-linux-bash-to-get-things-done
    linux
  • JoliCode - Devez-vous migrer vers Elasticsearch 6 ?

    Vous le savez peut-être, Algolia trie les documents lors de l’indexation, et non lors de la recherche. La raison est simple : c’est beaucoup plus rapide lors des recherches si les documents sont déjà triés sur le disque dur ! Cela permet, entre autre, de s’arrêter dès les dix premiers résultats trouvés – plutôt que de récupérer les 4 millions de hits et de les trier en mémoire juste pour remonter le top 10…

    November 17, 2017 at 8:41:14 AM GMT+1 - permalink - archive.org - https://jolicode.com/blog/devez-vous-migrer-vers-elasticsearch-6
    elasticsearch
  • Creating a persistent ssh tunnel in Ubuntu |

    autossh

    November 15, 2017 at 9:06:12 AM GMT+1 - permalink - archive.org - https://erik.torgesta.com/2013/12/creating-a-persistent-ssh-tunnel-in-ubuntu/
    ssh tunnel
  • thumbnail
    Des packs d'icones pour vos projets de développement - Korben
    November 7, 2017 at 2:03:27 PM GMT+1 - permalink - archive.org - https://korben.info/icones-pour-developpement-web.html
    icon
  • Note: rebase edit commit delete file

    git rebase -i $parent_hash
    git rm file
    git commit --amend
    git rebase --continue

    November 1, 2017 at 10:29:01 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?13Rz2Q
    git
  • The Symfony 3.3 DI Container Changes Explained (autowiring, _defaults, etc) (Symfony Docs)
    October 31, 2017 at 12:01:54 PM GMT+1 - permalink - archive.org - http://symfony.com/doc/current/service_container/3.3-di-changes.html
    service symfony
  • How Merkle trees enable the decentralized Web • Tara Vancil
    October 31, 2017 at 7:31:30 AM GMT+1 - permalink - archive.org - https://taravancil.com/blog/how-merkle-trees-enable-decentralized-web/
    merkle tree
  • PragmataPro coding font designed by Fabrizio Schiavi
    October 20, 2017 at 11:13:08 AM GMT+2 - permalink - archive.org - https://www.fsd.it/shop/fonts/pragmatapro/
    font
  • thumbnail
    Vim After 15 Years | Ian Langworth’s Things of Variable Interest

    https://github.com/junegunn/fzf
    https://vimawesome.com/plugin/ack-vim
    https://vimawesome.com/plugin/unimpaired-vim

    October 20, 2017 at 10:09:59 AM GMT+2 * - permalink - archive.org - https://statico.github.io/vim3.html
    vim
  • Pencil and Paper Games

    Via sebsauvage

    October 13, 2017 at 5:43:49 PM GMT+2 - permalink - archive.org - http://www.papg.com/
    game jeu papier
  • thumbnail
    shell - bash / sh script to replace text between some tags/strings in a text file - Unix & Linux Stack Exchange

    Use

    sed '/#start/,/#end/replace_command'

    For example, if the file is called myconfig, and you want to replace "allow" with "deny" in that section, you could say

    sed '/#start/,/#end/s/allow/deny/' myconfig

    example

    sed -i -r "/<elasticConfig>/,/<\/elasticConfig>/s,<enabled>.+</enabled>,<enabled>false</enabled>," file.xml

    October 12, 2017 at 11:03:01 AM GMT+2 * - permalink - archive.org - https://unix.stackexchange.com/questions/272061/bash-sh-script-to-replace-text-between-some-tags-strings-in-a-text-file
    awk replace sed
  • Using systemd to control the Docker daemon - Docker, Inc.

    The nice thing about the command above is that it shows a unified view of all options and takes into consideration any overrides that may have been applied.
    To change the value of an option, ExecStart in this case, do the following:

    [ec2-user@ip-10-0-46-113 ~]$ sudo systemctl edit docker

    This will create the necessary directory structure under /etc/systemd/system/docker.service.dand open an editor (using the default editor configured for the user) to the override file. Add the section below into the editor:

    [Service]
    ExecStart=
    ExecStart=/usr/bin/docker daemon -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock

    It was necessary to clear out ExecStart using ExecStart= before setting it to the override value. This is only required for some options and most options in the configuration file would not need to be cleared like this

    October 10, 2017 at 11:21:10 AM GMT+2 - permalink - archive.org - https://success.docker.com/KBase/Using_systemd_to_control_the_Docker_daemon
    docker systemd
  • A couple words on Arrays in Ruby - Ruby Blog

    <3

    October 7, 2017 at 7:53:30 AM GMT+2 - permalink - archive.org - http://rubyblog.pro/2017/09/couple-words-on-arrays
    array ruby
  • Note:

    SYNOPSIS
    get-login
    [--registry-ids <value> [<value>...]]
    [--include-email | --no-include-email]

    OPTIONS
    --registry-ids (string) A list of AWS account IDs that correspond to
    the Amazon ECR registries that you want to log in to.

       --include-email | --no-include-email (boolean) Specify if the '-e' flag
       should  be  included in the 'docker login' command. The '-e' option has
       been deprecated and is removed in docker version 17.06 and  later.  You
       must specify --no-include-email if you're using docker version 17.06 or
       later. The default behavior is to include the '-e' flag in the  'docker
       login' output.
    October 6, 2017 at 2:34:21 PM GMT+2 - permalink - archive.org - https://links.infomee.fr/?ECje8g
    aws ecr
  • Note: bash get random element from string "elem1;elem2;elem3"
    #!/bin/bash
    
    servers="server1;server2;server3"
    
    IFS=';' read -r -a array <<< "$servers"
    
    rand=$[ $RANDOM % ${#array[@]} ]
    
    echo ${array[$rand]}
    October 5, 2017 at 4:32:08 PM GMT+2 * - permalink - archive.org - https://links.infomee.fr/?wfMNvw
    bash random
  • thumbnail
    Reset properties inherited from parent image · Issue #3465 · moby/moby

    t also adds complexity to the Dockerfile language when there are clear workarounds. Don't push so much config in the parent Dockerfile and leave if for the inheriting images instead. (aka: stop sourcing random images on docker hub :D)

    Since docker 17.05 there is also a new way to do multi-stage builds that removes most of the need for this issue (this is a single Dockerfile):

    First import the original image

    FROM nginx AS source-image

    Second step of the build, start with an empty image

    FROM scratch

    Copy the data from the original image

    COPY --from=source-image / /

    Re-define all the config

    EXPOSE 80
    STOPSIGNAL SIGTERM
    CMD ["nginx", "-g", "daemon off;"]

    EDIT: Forgot to say, the second solution squashes all previous layers. I don't think it's a big deal but it's good to know.

    October 5, 2017 at 3:18:20 PM GMT+2 - permalink - archive.org - https://github.com/moby/moby/issues/3465#issuecomment-313549657
    docker
Links per page: 20 50 100
◄Older
page 40 / 218
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation